-- GENERATED SPELL FOR [Shaleskin Flayer] --


function spell0_20210(pUnit, Event) --@Shaleskin,Self--
pUnit:FullCastSpellOnTarget(36576,pUnit)
pUnit:RegisterEvent('Sorts_20210', 644, 1)
end

function Sorts_20210(pUnit, Event)
local choix_sorts_20210 = math.random(0, 0)
if choix_sorts_20210 == 0 then
pUnit:RegisterEvent('spell0_20210', 1, 1)
end
end

function mob20210_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20210', math.random(1500, 3000), 1)
end

function mob20210_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20210_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20210_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20210, 1, 'mob20210_Action')
RegisterUnitEvent(20210, 2, 'mob20210_Leave')
RegisterUnitEvent(20210, 3, 'mob20210_Kill')
RegisterUnitEvent(20210, 4, 'mob20210_Die')
